#define PROC_SYS_MAX	30000000

struct process
{
	int arrivalTime;
	char *name;
	int lifeTime;
	int lifeIO;
	int time;
	int ioOps;
	int lifeIOOps;
	int priority;
	int lastRun;
};

struct process *proc_create(char *name, int arrivalTime, int time, int io);
void proc_print(struct process *proc);
void proc_ran(struct process *proc, int time);
void proc_did_io(struct process *proc, int blocks);
void proc_set_priority(struct process *proc, int priority);
void proc_exit(struct process *proc);
int proc_done(struct process *proc);
int proc_time_to_event(struct process *proc);
